package cn.thread.pool.dynamic.thread.pool.sdk.domain;

import cn.thread.pool.dynamic.thread.pool.sdk.domain.model.entity.ThreadPoolConfigEntity;

import java.util.List;

/**
 * @author: xiaoxie
 * create: 2025-02-09 23:10
 * @BelongsProject: custom-dynamic-thread-pool
 * @BelongsPackage: cn.thread.pool.dynamic.thread.pool.sdk.domain
 * description: 线程池服务接口
 */
public interface IDynamicThreadPoolService {
    /**
     *  获取所有的线程
     */
    List<ThreadPoolConfigEntity> queryAllThreadPools();

    /**
     * 根据线程名字获取线程配置
     */
    ThreadPoolConfigEntity queryThreadPoolConfigByName(String threadPoolName);

    /**
     * 修改线程配置
     */
    void updateThreadPoolConfig(ThreadPoolConfigEntity threadPoolConfigEntity);
}
